package com.crm.service.impl;

import com.crm.mapper.EmployeeMapper;
import com.crm.pojo.Employee;
import com.crm.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;

    @Override
    public Employee findByAccount(String account) {
        Employee byAccount = employeeMapper.findByAccount(account);
        return byAccount;
    }
}
